﻿#ifndef U_ChannelPanel_H
#define U_ChannelPanel_H

#include "Window/mywidget.h"

class ChannelPanel : public MyWidget
{
    Q_OBJECT
public:
    explicit ChannelPanel(QString code, QWidget *parent = nullptr);

    void mouseDoubleClickEvent(QMouseEvent *event);
    void paintEvent(QPaintEvent *);

signals:

public slots:
    void OnTimer();

private:

    void InitWidget();
    void SetupConnections();
    void Initialize();

    QTimer       *timer;

    QString       code;
    Equipment     *equ;

    QLabel       *labInfo1;
    QLabel       *labInfo2;
    QLabel       *labInfo3;
    TStateTool   *state1;
    TStateTool   *state2;

    QProgressBar *tempBar;
    QProgressBar *humBar;

};

#endif // U_ChannelPanel_H
